QT       += core gui
QT += serialport
 QT += printsupport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    main.cpp \
    mainwindow.cpp \
    qcustomplot.cpp \
    serialworker.cpp

HEADERS += \
    mainwindow.h \
    qcustomplot.h \
    serialworker.h

FORMS += \
    mainwindow.ui \
    serialworker.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    qss.qrc

DISTFILES += \
    qss/QSS_IMG/btn_close_down.png \
    qss/QSS_IMG/btn_close_highlight.png \
    qss/QSS_IMG/btn_close_normal.png \
    qss/QSS_IMG/btn_max_down.png \
    qss/QSS_IMG/btn_max_highlight.png \
    qss/QSS_IMG/btn_max_normal.png \
    qss/QSS_IMG/btn_mini_down.png \
    qss/QSS_IMG/btn_mini_highlight.png \
    qss/QSS_IMG/btn_mini_normal.png \
    qss/QSS_IMG/btn_restore_down.png \
    qss/QSS_IMG/btn_restore_highlight.png \
    qss/QSS_IMG/btn_restore_normal.png \
    qss/QSS_IMG/checkbox.png \
    qss/QSS_IMG/checkbox_h.png \
    qss/QSS_IMG/checkbox_p.png \
    qss/QSS_IMG/downarrow.png \
    qss/QSS_IMG/go-down-symbolic.symbolic.png \
    qss/QSS_IMG/go-next-symbolic.symbolic.png \
    qss/QSS_IMG/go-previous-symbolic.symbolic.png \
    qss/QSS_IMG/go-up-symbolic.symbolic.png \
    qss/QSS_IMG/hor_scroll_left_arrow.png \
    qss/QSS_IMG/hor_scroll_right_arrow.png \
    qss/QSS_IMG/object-select-symbolic.symbolic.png \
    qss/QSS_IMG/radio.png \
    qss/QSS_IMG/radio_h.png \
    qss/QSS_IMG/radio_p.png \
    qss/QSS_IMG/sizegrip.png \
    qss/QSS_IMG/ver_scroll_bottom_arrow.png \
    qss/QSS_IMG/ver_scroll_top_arrow.png
